package com.yoso.shop.application.fegin;

import com.yoso.api.info.log.OrderLogInfo;
import com.yoso.base.interfaces.controller.BaseResponse;
import com.yoso.shop.interfaces.vo.order.OrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author shizejin
 * @date 2022/1/29
 * @description:
 */
@FeignClient(name = "log-server")
public interface LogFeignServer {
    /**
     *  当前订单日志信息
     * @param orderCode 订单号
     */
    @PostMapping(value = "/orderLog/getCurrentOrderLog")
    BaseResponse<List<OrderLogInfo>> getCurrentOrderLog(@RequestParam("orderCode")String orderCode);
}
